﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.ManageAccountsModel>" %>
    
    <tr>
    <th>Gender:</th>
    <th><%= Html.TextBoxFor(model => model.SelectedDemographic) %></th>
    <th>Location:</th>
    <th><%= Html.TextBoxFor(model => model.SelectedLocation) %></th>
    <th></th>
    <th></th>
    <th></th>
    <tr>
    <th>Organisation:</th>
    <th><%= Html.TextBoxFor(model => model.SelectedOrganisation) %></th>
    <th>In Role:</th>
    <th><%= Html.DropDownListFor(model => model.SelectedRoleName, new SelectList(Model.Roles, "RoleName", "RoleName"), "Any")%></th>
    <th>Order By:</th>
    <th colspan="2"><%= Html.DropDownListFor(model => model.SelectedOrderByFilter, Model.SortFilters, "None") %></th>
    </tr>
    <tr>
    <th id="th_username">Username</th>
    <th id="th_firstname">First Name</th>
    <th id="th_lastname">Last Name</th>
    <th id="th_role">Role</th>
    <th id="th_creationdate">Creation Date</th>
    <th id="th_lastlogindate">Last Login Date</th>
    <th id="th_delete"></th>
    </tr>
    <% foreach (var user in Model.Users)
           Html.RenderPartial("UserEditorRow", user);
    %>